package com.ssy.lingxi.contract.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 采购竞价合同
 * @author 伍将
 * @date 2021/3/15
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "con_purchase_vie_price",
        indexes = {@Index(name = "con_purchase_vie_price_member_idx", columnList = "memberId,roleId"),
                @Index(name = "con_purchase_vie_price_award_member_idx", columnList = "awardMemberId,awardRoleId"),
                @Index(name = "con_purchase_vie_price_award_time_idx", columnList = "awardTime"),
                @Index(name = "con_purchase_vie_price_vie_price_id_idx", columnList = "viePriceId"),
                @Index(name = "con_purchase_vie_price_create_contract_idx", columnList = "isCreate")})
public class PurchaseViePriceDO implements Serializable {
    private static final long serialVersionUID = -8449092736143646006L;

    /**
     * ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "purchase_vie_price_seq")
    @SequenceGenerator(sequenceName = "con_purchase_vie_price_seq", name = "purchase_vie_price_seq", allocationSize = 1)
    private Long id;

    /**
     * 会员id
     */
    @Column(columnDefinition = "int8")
    private Long memberId;

    /**
     * 会员角色id
     */
    @Column(columnDefinition = "int8")
    private Long roleId;

    /**
     * 竞价单id
     */
    @Column(columnDefinition = "int8")
    private Long viePriceId;

    /**
     * 竞价单号
     */
    @Column(columnDefinition = "varchar(16)")
    private String viePriceNO;

    /**
     * 竞价摘要
     */
    @Column(columnDefinition = "varchar(60)")
    private String viePriceAbstract;

    /**
     * 发布时间
     */
    @Column(columnDefinition = "int8")
    private Long publishTime;

    /**
     * 授标会员id
     */
    @Column(columnDefinition = "int8")
    private Long awardMemberId;

    /**
     * 授标会员角色id
     */
    @Column(columnDefinition = "int8")
    private Long awardRoleId;

    /**
     * 授标会员名称
     */
    @Column(columnDefinition = "varchar(50)")
    private String awardName;

    /**
     * 授标时间
     */
    @Column(columnDefinition = "int8")
    private Long awardTime;

    /**
     * 授标金额
     */
    @Column(columnDefinition = "decimal")
    private Double awardAmount;

    /**
     * 内部状态
     */
    @Column(columnDefinition = "int")
    private Integer innerStatus;

    /**
     * 外部状态
     */
    @Column(columnDefinition = "int")
    private Integer outerStatus;

    /**
     * 是否创建合同:0-否，1-是
     */
    @Column(columnDefinition = "int")
    private Integer isCreate;

    /**
     * 创建时间
     */
    @Column(columnDefinition = "int8")
    private Long createTime;

    /**
     * 更新时间
     */
    @Column(columnDefinition = "int8")
    private Long updateTime;

    /**
     * 报价单id
     */
    @Column(columnDefinition = "int8")
    private Long quotedPriceOrderId;

    /**
     * 报价单编号
     */
    @Column(columnDefinition = "varchar(16)")
    private String quotedPriceOrderNo;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getViePriceId() {
        return viePriceId;
    }

    public void setViePriceId(Long viePriceId) {
        this.viePriceId = viePriceId;
    }

    public String getViePriceNO() {
        return viePriceNO;
    }

    public void setViePriceNO(String viePriceNO) {
        this.viePriceNO = viePriceNO;
    }

    public String getViePriceAbstract() {
        return viePriceAbstract;
    }

    public void setViePriceAbstract(String viePriceAbstract) {
        this.viePriceAbstract = viePriceAbstract;
    }

    public Long getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Long publishTime) {
        this.publishTime = publishTime;
    }

    public Long getAwardMemberId() {
        return awardMemberId;
    }

    public void setAwardMemberId(Long awardMemberId) {
        this.awardMemberId = awardMemberId;
    }

    public Long getAwardRoleId() {
        return awardRoleId;
    }

    public void setAwardRoleId(Long awardRoleId) {
        this.awardRoleId = awardRoleId;
    }

    public String getAwardName() {
        return awardName;
    }

    public void setAwardName(String awardName) {
        this.awardName = awardName;
    }

    public Long getAwardTime() {
        return awardTime;
    }

    public void setAwardTime(Long awardTime) {
        this.awardTime = awardTime;
    }

    public Double getAwardAmount() {
        return awardAmount;
    }

    public void setAwardAmount(Double awardAmount) {
        this.awardAmount = awardAmount;
    }

    public Integer getInnerStatus() {
        return innerStatus;
    }

    public void setInnerStatus(Integer innerStatus) {
        this.innerStatus = innerStatus;
    }

    public Integer getOuterStatus() {
        return outerStatus;
    }

    public void setOuterStatus(Integer outerStatus) {
        this.outerStatus = outerStatus;
    }

    public Integer getIsCreate() {
        return isCreate;
    }

    public void setIsCreate(Integer isCreate) {
        this.isCreate = isCreate;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Long getQuotedPriceOrderId() {
        return quotedPriceOrderId;
    }

    public void setQuotedPriceOrderId(Long quotedPriceOrderId) {
        this.quotedPriceOrderId = quotedPriceOrderId;
    }

    public String getQuotedPriceOrderNo() {
        return quotedPriceOrderNo;
    }

    public void setQuotedPriceOrderNo(String quotedPriceOrderNo) {
        this.quotedPriceOrderNo = quotedPriceOrderNo;
    }
}
